x86/fpu: clean up FPU context save function
authorWei Huang <wei.huang2@amd.com>
Mon, 9 May 2011 10:38:04 +0000 (11:38 +0100)
committerWei Huang <wei.huang2@amd.com>
Mon, 9 May 2011 10:38:04 +0000 (11:38 +0100)
commit09014a12a9a2e820bc2ac2f82ff9018a69208c8c
treea5737d390078ae5708a6b92a52408a04cd11f3d1
parentfb48379fc38ea90ccf58b126c8817baa17eea661
x86/fpu: clean up FPU context save function

This patch cleans up context save function. It renames the save
function to vcpu_save_fpu() because existing function name is
confusion. It also extracts FPU context save code (fsave, fxsave,
xsave) into seperate functions. vcpu_save_fpu() will call
corresponding sub-function depending on CPU's capability.

Signed-off-by: Wei Huang <wei.huang2@amd.com>
xen/arch/x86/acpi/suspend.c
xen/arch/x86/domain.c
xen/arch/x86/i387.c
xen/include/asm-x86/i387.h